import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询站台资料列表
export function listStation(query) {
  return request({
    url: '/wms/station/list',
    method: 'get',
    params: query
  })
}

// 查询站台资料详细
export function getStation(stationId) {
  return request({
    url: '/wms/station/' + parseStrEmpty(stationId),
    method: 'get'
  })
}

// 新增站台资料
export function addStation(data) {
  return request({
    url: '/wms/station',
    method: 'post',
    data: data
  })
}

// 修改站台资料
export function updateStation(data) {
  return request({
    url: '/wms/station',
    method: 'put',
    data: data
  })
}

// 删除站台资料
export function delStation(stationId) {
  return request({
    url: '/wms/station/' + stationId,
    method: 'delete'
  })
}
